/*************************************************
* Title：TinyToolKit
* Author：Opportunity 
* Discribe：自定义特性，可以添加HelpBox
* CreateTime：2020-04-28 17:33:12
* Version：1.0
* Modify Recoder：
*************************************************/

using System;
using UnityEngine;

namespace TinyToolKit
{
    public enum HelpBoxType
    {
        None,
        Info,
        Warning,
        Error
    }

    [AttributeUsage(AttributeTargets.Field,AllowMultiple = true,Inherited = true)]
    public class HelpBoxAttribute : PropertyAttribute     
    {
        public string message { get; private set; }
        public HelpBoxType helpBoxType { get; private set; }
        
        public HelpBoxAttribute(string message, HelpBoxType helpBoxType, HelpBoxType type = HelpBoxType.Info)
        {
            this.message = message;
            this.helpBoxType = helpBoxType;
        }
    }
}

